package multithreading.blockingQueueTest;

import java.util.concurrent.ArrayBlockingQueue;

public class BlockingQueueTest {
    public static void main(String[] args) {
        ArrayBlockingQueue quaua = new ArrayBlockingQueue<>(1);
        Fooder f = new Fooder(quaua);
        Cook c = new Cook(quaua);
        f.setName("吃货");
        c.setName("厨师");
        f.start();
        c.start();

    }
}
